using UnityEngine;

public class AnimationOnTrigger : BaseAnimatedValue
{
	private Animator animator;

	protected void Start()
	{
		if (animator == null)
		{
			animator = GetComponent<Animator>();
		}
	}

	public override void SetPercent()
	{
		base.SetPercent();
		animator.SetFloat("Blend", base.Percent);
	}
}
